#ifndef _FUNCTIONS_H_
#define _FUNCTIONS_H_

#include <stdio.h>


#ifndef READ_CHUNK_SIZE
# define READ_CHUNK_SIZE 1000000
#endif


#ifdef __cplusplus
extern "C" {
#endif

int is_interactive();

char *format_size(long s);

char *read_stream(FILE *f, long *sz);

unsigned int *gen_primes(unsigned int n_max);


#ifdef __cplusplus
}
#endif

#endif /* _FUNCTIONS_H_ */
